<?php


namespace app\api\controller\v1;


use app\adminapi\controller\AuthController;
use app\services\notice\NoticeFeedbackService;
use think\facade\App;

class Feedback extends AuthController
{
    public function __construct(App $app,NoticeFeedbackService  $service)
    {
        parent::__construct($app);
        $this ->services = $service;
    }

    /*
    * 保存问题反馈
    */
    public function index(){
        $where = $this->request->postMore([
            ['website_id',$this  -> website],
            ['id',''],
            ['content','']
        ]);
        return app()->make('json')->successful($this->services->insertFeedbsck($where));
    }

}